package com.warmlight.voicepacket.service;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * Created by weiweijinpeng on 2018/8/6.
 *  文件下载线程池
 */

public class DownLoadPool extends ThreadPoolExecutor {

    public DownLoadPool(int maxThreadSize){
        this(maxThreadSize,4,3, TimeUnit.SECONDS,new ArrayBlockingQueue<Runnable>(3));
    }

    public DownLoadPool(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) {
        super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);
    }

    public void removeTag(String tag){
        removeTag(tag);
    }
}
